package com.zxcl.feign;

import com.zxcl.domain.Prod;
import com.zxcl.feign.sentinel.StoreProdFeignSentinel;
import com.zxcl.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 描述: [远程调用商品信息]
 * 作者: zxcl
 */
@FeignClient(value = "product-service",fallback = StoreProdFeignSentinel.class)
public interface StoreProdFeign {

    @GetMapping("prod/prod/getProdById")
    Result<Prod> getProdById(@RequestParam("prodId") Long prodId);

}
